package com.leslie.app.controller;

import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;


@RestController
@RequiredArgsConstructor
@RequestMapping("/array")
public class ArrayTestController {
    public  static final List<String> EC_261_AIRPORTS = Arrays.asList("AMS", "CDG", "FRA");
//public  static final List<String> EC_261_AIRPORTS = List.of("");
//

    @RequestMapping("/contains")
    public Boolean arrayTest() {
        String airport = "AMS";
        return EC_261_AIRPORTS.contains(airport);
    }

}
